﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace HF.WorkFlow.DataContract
{
    /// <summary>
    /// 任务实例数据契约
    /// </summary>
    /// <remarks>描述任务实例的数据契约</remarks>
    [DataContract]
    public class WorkTaskInstanceEntity
    {
        /// <summary>
        ///任务实例Id
        /// </summary>
        [DataMember]
        public string WorkTaskInstanceId { get; set; }
        /// <summary>
        /// 流程模板Id
        /// </summary>
        [DataMember]
        public string WorkFlowId { get; set; }
        /// <summary>
        /// 任务模板Id
        /// </summary>
        [DataMember]
        public string WorkTaskId { get; set; }
        /// <summary>
        /// 所属流程实例Id。
        /// </summary>
        [DataMember]
        public string WorkFlowInstanceId { get; set; }
        /// <summary>
        /// 前一任务实例Id
        /// </summary>
        [DataMember]
        public string PreviousTaskInstanceId { get; set; }
        /// <summary>
        /// 任务实例名称
        /// </summary>
        [DataMember]
        public string TaskInstanceCaption { get; set; }
        /// <summary>
        /// 流程实例开始时间。
        /// </summary>
        [DataMember]
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [DataMember]
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 任务状态。
        /// </summary>
        [DataMember]
        public string Status { get; set; }
        /// <summary>
        /// 处理者的描述信息。
        /// </summary>
        [DataMember]
        public string OperatedDes { get; set; }
        /// <summary>
        /// 处理者实例id
        /// </summary>
        [DataMember]
        public string OperatorInstanceId { get; set; }
        /// <summary>
        /// 任务提交成功时回写该字段。
        /// </summary>
        [DataMember]
        public string SuccessMsg { get; set; }
        /// <summary>
        ///是否任务超时提醒
        /// </summary>
        [DataMember]
        public bool OutTimeed { get; set; }
        /// <summary>
        /// 是否任务到达提醒
        /// </summary>
        [DataMember]
        public bool Reminded { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        
    }
}
